package 接口;

public class Printer4 implements Device4, NetworkDevice4, UsbDevice4 {
    private String model;

    public Printer4(String model) {
        this.model = model;
    }

    @Override
    public void powerOn() {
        System.out.println(model + "打印机开机，正在加载打印驱动...");
    }

    @Override
    public void powerOff() {
        System.out.println(model + "打印机关机，正在保存打印任务列表...");
    }

    @Override
    public void repair() {
        System.out.println(model + "打印机报修：常见问题为卡纸、缺墨或打印头堵塞");
    }

    @Override
    public void connectNetwork() {
        System.out.println(model + "打印机正在连接校园局域网，IP地址自动获取中...");
    }

    @Override
    public void connectUsb() {
        System.out.println(model + "打印机通过USB线连接电脑，已识别为默认打印机...");
    }
}